

jQuery(function ($) {
    //余额查询切换
    $('.nav li').click(function () {
        var index = $(this).index();
        $(this).addClass("on").siblings().removeClass("on");
        $(".swiper-container").eq(index).addClass('open').siblings().removeClass("open");
    });
    $('.swiper-container').mouseenter(function () {
        $('.swiper_btn').show();
    }).mouseleave(function () {
        $('.swiper_btn').hide();
    });
    var mySwiper = new Swiper('#swiper1', {
        slidesPerView: 5,
        loop: true,
        observer: true,
        observeParents: true,
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev'
        }
    });
    var mySwiper = new Swiper('#swiper2', {
        slidesPerView: 5,
        loop: true,
        observer: true,
        observeParents: true,
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev'
        }
    });
    var mySwiper = new Swiper('#swiper3', {
        slidesPerView: 5,
        loop: true,
        observer: true,
        observeParents: true,
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev'
        }
    });
    var mySwiper = new Swiper('#swiper4', {
        slidesPerView: 5,
        loop: true,
        observer: true,
        observeParents: true,
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev'
        }
    });
});